package ren.nearby.http.permission;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/10/10 0010.
 */

public class PermissionBean implements Parcelable {
    //选中
    public boolean isSelect;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }


    private int id;
    private String type_name;

    public PermissionBean() {

    }

    public PermissionBean(boolean isSelect, int id, String type_name) {
        this.isSelect = isSelect;
        this.id = id;
        this.type_name = type_name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(type_name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public final Creator<PermissionBean> CREATOR = new Creator<PermissionBean>() {

        @Override
        public PermissionBean createFromParcel(Parcel source) {
            PermissionBean selector = new PermissionBean();
            selector.id = source.readInt();
            selector.type_name = source.readString();


            return selector;
        }

        @Override
        public PermissionBean[] newArray(int size) {
            return new PermissionBean[0];
        }
    };

}

